/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hoja5;

/**
 *
 * @author Ero
 */
public abstract class AbsQueue <E> implements Queue <E> {
            protected int tam, cont;
            
            public AbsQueue(int num){
                tam=num;
                cont=0;
            }
            @Override
            public boolean isEmpty() {
                return (cont==0?true:false);

            }


            public boolean isFull() {
               return cont==tam?true:false;
            }
    @Override
            public int size(){
                return cont;
            }
}
